<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Access-Control-Allow-Origin" content="*" />

    <title></title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="shortcut icon" href="favicon.ico">
    <link href="../../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../../css/style.css?v=4.1.0" rel="stylesheet">
    <link href="../../css/view/global.css" rel="stylesheet">
    <!--<link href="../../css/view/template.css" rel="stylesheet">-->
    <link rel="stylesheet" href="../../css/view/community/community-service.css">
    <link rel="stylesheet" href="../../css/view/main/communityList.css">
</head>

<body class="white-bg">
<div class="container-box">
    <div class="page-title">
        <div class="blue-bg-circle themeBgColor"></div>
        <div class="title">社区信息</div>
    </div>


    <!--健康商城-->
    <div class="item-box">
        <div class="item-business-box">
            <div class="third-title">
                <div class="border-left themeBgColor"></div>
                <div class="text">添加社区</div>
            </div>
            <div class="add-business themeColor" data-toggle="modal" data-target="#CommunityModal" >
                添加社区
            </div>
            <div class="line"></div>
            <div class="business-list">
                <div class="border-left themeBgColor"></div>
                <div class="four-title">社区列表</div>
            </div>
            <div class="screen">
                <div class="searchAre">
                    <div>省：</div>
                    <select class="form-control" id="province2">
                        <option value="-1">请选择</option>
                    </select>
                    <div class="cityTxt">市：</div>
                    <select class="form-control"  id="city2" >
                        <option value="-1">请选择</option>
                    </select>
                    <div class="cityTxt">区：</div>
                    <select class="form-control"  id="area2" >
                        <option value="-1">请选择</option>
                    </select>
                </div>
                <div class="search">
                    <div id="searchTxt">搜索社区名称</div>
                    <input type="text" class="search-box">
                </div>
                <button type="button" class="btn themeBgColor" id="searchBtn" data-type="">搜索</button>
            </div>
            <div class="table-box">
                <table class="table table-striped">
                    <thead class="themeBgColor">
                        <tr>
                            <th>社区名称</th>
                            <th>社区地址</th>
                            <!-- <th>社区电话</th> -->
                            <th>代理级别</th>
                            <th>所属市代</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody id="communityList">

                    </tbody>
                </table>
                <div id="page" class="page_div"></div>
            </div>
            <div id="ordersListTable" style="display: none">
                <div class="business-list">
                    <div class="border-left themeBgColor"></div>
                    <div class="four-title">社区订单</div>
                </div>
                <div class="table-box">
                    <table class="table table-striped">
                        <thead class="themeBgColor">
                            <tr>
                                <th>买家姓名</th>
                                <th>联系方式</th>
                                <th>订单编号</th>
                                <th>交易时间</th>
                                <th>交易金额（元）</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody id="ordersList">
    
                        </tbody>
                    </table>
                    <div id="page2" class="page_div"></div>
                </div>
            </div>
        </div>
    </div>


<!-- Modal Add CommunityModal-->
<div class="modal fade" id="CommunityModal" tabindex="-1" role="dialog" aria-labelledby="classModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">添加社区</h4>
            </div>
            <div class="modal-body" style="height:400px;overflow-y:scroll;">
                <div class="form-group">
                    <label for="className">账号：</label>
                    <input type="text" class="form-control"  placeholder="请输入账号" id="account">
                </div>
                <div class="form-group">
                    <label for="className">密码：</label>
                    <input type="text" class="form-control"  placeholder="请输入密码" id="password">
                </div>
                <div class="form-group">
                    <label for="className">电话：</label>
                    <input type="text" class="form-control"  placeholder="请输入电话" id="communityPhone">
                </div>
                <div class="form-group">
                    <label for="className">社区名称：</label>
                    <input type="text" class="form-control"  placeholder="请输入社区名称" id="communityName">
                </div>
                <div class="searchAre">
                    <div>省：</div>
                    <select class="form-control"  id="province">
                        <option value="-1">请选择</option>
                    </select>
                    <div class="cityTxt">市：</div>
                    <select class="form-control"  id="city">
                        <option value="-1">请选择</option>
                    </select>
                    <div class="areaTxt">区：</div>
                    <select class="form-control"  id="area" >
                        <option value="-1">请选择</option>
                    </select>
                </div>
                <div class="classAre">
                    <label>选择当前所属身份</label>
                    <div class="identityAre">
                        <div class="add-class-box">
                            <div class="checkbox">
                                <label>
                                    <input type="radio" class="class-checked" name="identity" value="1"> 市级代理
                                </label>
                                <label>
                                    <input type="radio" class="class-checked" name="identity" value="2" checked> 区级代理
                                </label>
                            </div>
                        </div>
                        <div></div>
                        
                    </div>
                    
                </div>
                <div class="Belongs">
                    <div>所属市代：</div>
                    <select class="form-control" id="Belongs">
                        <option value="-1">请选择</option>
                    </select>
                </div>
                <div class="rebateAre">
                    <div>设置返利：</div>
                    <input type="number" class="form-control" placeholder="请输入市级代理返利百分比" id="rebate">
                    <div>%</div>
                </div>
                <div class="rebateAre2">
                    <div>设置返利：</div>
                    <input type="number" class="form-control" placeholder="请输入区级代理返利百分比" id="rebate2">
                    <div>%</div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="addCommunity" data-type="">确认</button>
            </div>
        </div>
    </div>
</div>


<!-- Modal Add upgradeModal-->
<div class="modal fade" id="upgradeModal" tabindex="-1" role="dialog" aria-labelledby="classModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">升级代理</h4>
            </div>
            <div class="modal-body" style="overflow-y:scroll;">
                <div class="form-group">
                    <label for="className">请选择所在城市</label>
                    <input type="hidden" id="upgradeId">
                    <div class="searchAre">
                        <div>省：</div>
                        <select class="form-control"  id="province3">
                            <option value="-1">请选择</option>
                        </select>
                        <div class="cityTxt">市：</div>
                        <select class="form-control"  id="city3">
                            <option value="-1">请选择</option>
                        </select>
                        <button type="button" class="btn themeBgColor" id="searchBtn2" data-type="">搜索</button>
                    </div>
                </div>
                <div class="form-group">
                    <label >选择管理门店</label>
                    <div class="add-class-box" id="add-community-box">
                    </div>
                </div>
                
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn themeBgColor" id="addUpgradeModal" data-type="">确认</button>
            </div>
        </div>
    </div>
</div>

<!-- 全局js -->
<script src="../../js/jquery.min.js?v=2.1.4"></script>
<script src="../../js/bootstrap.min.js?v=3.3.6"></script>
<script src="../../js/plugins/jeditable/jquery.jeditable.js"></script>
<script src="../../js/my-js/provinceList.js"></script>
<!--paging-->
<script src="../../js/my-js/paging.js"></script>
<!-- 自定义js -->
<script src="../../js/my-js/global.js"></script>
<script src="../../js/view/main/communityList.js"></script>
</body>

</html>
